package com.huihuiyun.huihuiyun.server.repository;

import com.huihuiyun.huihuiyun.server.domain.HhyProduct;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface HhyProductRepository extends JpaRepository<HhyProduct, String> {
    List<HhyProduct> findAllByCategoryIdAndAreaCodeAndStatusAndReviewStatus(String categoryId, String areaCode, int status, int reviewStatus);

    List<HhyProduct> findAllByCategoryIdAndStatusAndReviewStatus(String categoryId, int status, int reviewStatus);

    Page<HhyProduct> findAllBySellerIdAndMallType(String sellerId, int mallType, Pageable pageable);
}
